package com.du.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : DuJiabao
 * @Date : 2021/4/1 21:02
 * @Project : spring-mvc
 * @File : null.java
 * @Desc :
 */
@Controller
public class RedirectController {
  @RequestMapping("/redirectTest")
  public String redirectTest() {
    System.out.println("redirectTest");
    return "redirect:/index.jsp";
  }

  @RequestMapping("/forwardTest")
  public String forwardTest() {
    System.out.println("forwardTest");
    return "forward:/index.jsp";
  }
}
